﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="BankView.aspx.cs" Inherits="BankView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" PostBackUrl="~/BankEdit.aspx?m=liBanks" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="BankGirdView" CssClass="skineedgrid" runat="server" DataSourceID="BankDS" AutoGenerateColumns="false" Width="75%" DataKeyNames="RecordID"
        AllowPaging="true" AllowSorting="true" PageSize="10">
        <Columns>
            <asp:BoundField DataField="RecordID" HeaderText="RecordID" Visible="False" />
            <asp:BoundField DataField="ID" HeaderText="BankID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title" SortExpression="Name" />
            <asp:BoundField DataField="NameGeo" HeaderText="Title(Geo)" SortExpression="NameGeo" />
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="bankhistory.aspx?id=<%#Eval("ID") %>&m=liBanks">Hitory</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>


    <asp:ObjectDataSource ID="BankDS" runat="server" SortParameterName="sortBy" SelectMethod="GetBanks" TypeName="DAL.DBManagers.BanksManager"></asp:ObjectDataSource>
</asp:Content>

